package com.lgy.rabbit.mq;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum EmailTopicRabbit implements RabbitParent {
    EMAIL_TOPIC_RABBIT("email.*.topic");


    private static final String EXCHANGE_NAME = "email_topic_exchange";

    /**
     * 路由键
     */
    private final String routeKey;

    @Override
    public String exchange() {
        return EXCHANGE_NAME;
    }

    @Override
    public String routingKey() {
        return routeKey;
    }
}
